package com.example.sekerim;

import java.io.Serializable;
import java.util.Calendar;

public class Patient implements Serializable {
	
	private String userName = "";
	private String userSurname = "";
	private String mailAddress = "";
	private String password = "";
	private boolean isMale = false;
	private int birthdayDay = 0;
	private int birthdayMonth = 0;
	private int birthdayYear = 0;
	private int height = 0;
	private int weight = 0;
	private String ethnicity = "";
	private boolean isFamilyHistoryClean = false;
	private boolean isSmoking = false;


	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserSurname() {
		return userSurname;
	}

	public void setUserSurname(String userSurname) {
		this.userSurname = userSurname;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getMailAddress() {
		return mailAddress;
	}

	public void setMailAddress(String mailAddress) {
		this.mailAddress = mailAddress;
	}

	public int getBirthdayDay() {
		return birthdayDay;
	}

	public void setBirthdayDay(int birthdayDay) {
		this.birthdayDay = birthdayDay;
	}

	public int getBirthdayMonth() {
		return birthdayMonth;
	}

	public void setBirthdayMonth(int birthdayMonth) {
		this.birthdayMonth = birthdayMonth;
	}

	public int getBirthdayYear() {
		return birthdayYear;
	}

	public void setBirthdayYear(int birthdayYear) {
		this.birthdayYear = birthdayYear;
	}
	
	public int getAge()
	{
		int year = Calendar.getInstance().get(Calendar.YEAR);
		return year-this.birthdayYear;
	}

	public void setGender(boolean isMale)
	{
		this.isMale = isMale;
	}
	
	public boolean isMale()
	{
		return this.isMale;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public int getWeight() {
		return weight;
	}

	public void setWeight(int weight) {
		this.weight = weight;
	}

	public String getEthnicity() {
		return ethnicity;
	}

	public void setEthnicity(String ethnicity) {
		this.ethnicity = ethnicity;
	}

	public boolean isFamilyHistoryClean() {
		return isFamilyHistoryClean;
	}

	public void setFamilyHistoryClean(boolean isFamilyHistoryClean) {
		this.isFamilyHistoryClean = isFamilyHistoryClean;
	}
	
	public boolean isSmoking() {
		return isSmoking;
	}

	public void setIsSmoking(boolean isSmoking) {
		this.isSmoking = isSmoking;
	}
	
	

}
